<?php
    include "admin_users.php";


$userid=$_REQUEST['userid'];
$goodsid=$_REQUEST['goodsid'];
$userimg=$_REQUEST['userimg'];
$petname=$_REQUEST['petname'];
$commend=$_REQUEST['commend'];
$time=$_REQUEST['time'];
// var_dump($id);

mysqli_select_db($conn,"shopping");

  $sql =  "insert into commend(`userid`,`goodsid`,`userimg`,`petname`,`commend`,`time`) 
  values ('$userid','$goodsid','$userimg','$petname','$commend','$time')";

   $result=mysqli_query($conn,$sql);
     

    if (!$result){
        echo '数据添加失败！';
    }else{
        echo '数据添加成功！';
    }
    
    mysqli_close($conn);
?>
